<html>
<head>
<title>the title</title>
   <script type="text/javascript" 
   src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
   <script type="text/javascript" language="javascript">
  $(document).ready(function() {
      $(".fowllow").click(function(){
      	var foButton = $(this);
      	var idShop = $(this).attr('data-id-shop');
          $.post( 
             "/wewant1/learning/ajax/followShop.php",
             'id=13',
             function(data) {
             	foButton.text("ok");

             }

          );
      });
   });
   </script>
</head>
<body>
	<a href = '#' data-id-shop = "13" class="fowllow">click thu</a>
</body>
</html>
